package com.jzr.board.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.jzr.board.R
import com.jzr.board.bean.NurseListBean
import com.jzr.board.bean.NurseSchedulBean
import com.jzr.board.bean.PatientListBean


class CheckAdapter(data: MutableList<NurseListBean.DataBean>?) :
    BaseQuickAdapter<NurseListBean.DataBean, BaseViewHolder>(
        R.layout.item_check,
        data
    ) {

    override fun convert(helper: BaseViewHolder?, item: NurseListBean.DataBean?) {
        helper?.setText(R.id.tvName, item?.name)
        helper?.itemView?.setOnClickListener {
            if(onItemClick!=null){
                onItemClick?.onListItemClick(item)
            }
        }

  
    }

    private var onItemClick: onListItemClick? = null

    interface onListItemClick {
        fun onListItemClick(item: NurseListBean.DataBean?)
    }

    fun onListItemClick(onListItemClick: onListItemClick?) {
        this.onItemClick = onListItemClick
    }



}